package structure.bridge;

import java.sql.SQLException;

import structure.bridge.impl.DriverManager;

public class BridgeTest {

	public static void main(String[] args) throws ClassNotFoundException, SQLException {
		Class.forName("structure.bridge.impl.MySQLDriver");
		System.out.println("获取的连接：" + DriverManager.getConnection("mysql", "mysql", "mysql"));
		Class.forName("structure.bridge.impl.OracleDriver");
		System.out.println("获取的连接：" + DriverManager.getConnection("oracle", "oracle", "oracle"));
	}
}
